﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 面试表增加身高体重 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "HasRelativeInCompany",
                table: "SysPerson",
                type: "bit",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "Height",
                table: "SysPerson",
                type: "decimal(5,2)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "RelationshipType",
                table: "SysPerson",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RelativeName",
                table: "SysPerson",
                type: "nvarchar(64)",
                maxLength: 64,
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "Weight",
                table: "SysPerson",
                type: "decimal(5,2)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HasRelativeInCompany",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "Height",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "RelationshipType",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "RelativeName",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "Weight",
                table: "SysPerson");
        }
    }
}
